/*******************************************************************
 *
 * Copyright (C), 2018-2018, www.letstrong.cn, All rights reserved.
 *
 * Author      : xiaoyu | xiaoyu_ebox@163.com
 * Create Time : 2018-6-4
 * Version     : v0.1
 * Description : ugui_color header file
 *******************************************************************/
#ifndef __UGUI_COLOR_H__
#define __UGUI_COLOR_H__

/*----------------------------Head file----------------------------*/
#include "ugui_config.h"

/*----------------------------macro file---------------------------*/
#if(CONFIG_GUI_COLOR == USE_COLOR_RGB565)
#define COLOR_CONVERT(c)				(((c&0xF8)>>3) | ((c&0xFC00)>>5) | ((c&0xF80000)>>8))
#elif(CONFIG_GUI_COLOR == USE_COLOR_RGB888)
#define COLOR_CONVERT(c)				(c)
#endif

// uGUI COLORS(http://www.rapidtables.com/web/color/RGB_Color.htm)
#define  C_MAROON                     COLOR_CONVERT(0x800000)
#define  C_DARK_RED                   COLOR_CONVERT(0x8B0000)
#define  C_BROWN                      COLOR_CONVERT(0xA52A2A)
#define  C_FIREBRICK                  COLOR_CONVERT(0xB22222)
#define  C_CRIMSON                    COLOR_CONVERT(0xDC143C)
#define  C_RED                        COLOR_CONVERT(0xFF0000)
#define  C_TOMATO                     COLOR_CONVERT(0xFF6347)
#define  C_CORAL                      COLOR_CONVERT(0xFF7F50)
#define  C_INDIAN_RED                 COLOR_CONVERT(0xCD5C5C)
#define  C_LIGHT_CORAL                COLOR_CONVERT(0xF08080)
#define  C_DARK_SALMON                COLOR_CONVERT(0xE9967A)
#define  C_SALMON                     COLOR_CONVERT(0xFA8072)
#define  C_LIGHT_SALMON               COLOR_CONVERT(0xFFA07A)
#define  C_ORANGE_RED                 COLOR_CONVERT(0xFF4500)
#define  C_DARK_ORANGE                COLOR_CONVERT(0xFF8C00)
#define  C_ORANGE                     COLOR_CONVERT(0xFFA500)
#define  C_GOLD                       COLOR_CONVERT(0xFFD700)
#define  C_DARK_GOLDEN_ROD            COLOR_CONVERT(0xB8860B)
#define  C_GOLDEN_ROD                 COLOR_CONVERT(0xDAA520)
#define  C_PALE_GOLDEN_ROD            COLOR_CONVERT(0xEEE8AA)
#define  C_DARK_KHAKI                 COLOR_CONVERT(0xBDB76B)
#define  C_KHAKI                      COLOR_CONVERT(0xF0E68C)
#define  C_OLIVE                      COLOR_CONVERT(0x808000)
#define  C_YELLOW                     COLOR_CONVERT(0xFFFF00)
#define  C_YELLOW_GREEN               COLOR_CONVERT(0x9ACD32)
#define  C_DARK_OLIVE_GREEN           COLOR_CONVERT(0x556B2F)
#define  C_OLIVE_DRAB                 COLOR_CONVERT(0x6B8E23)
#define  C_LAWN_GREEN                 COLOR_CONVERT(0x7CFC00)
#define  C_CHART_REUSE                COLOR_CONVERT(0x7FFF00)
#define  C_GREEN_YELLOW               COLOR_CONVERT(0xADFF2F)
#define  C_DARK_GREEN                 COLOR_CONVERT(0x006400)
#define  C_GREEN                      COLOR_CONVERT(0x00FF00)
#define  C_FOREST_GREEN               COLOR_CONVERT(0x228B22)
#define  C_LIME                       COLOR_CONVERT(0x00FF00)
#define  C_LIME_GREEN                 COLOR_CONVERT(0x32CD32)
#define  C_LIGHT_GREEN                COLOR_CONVERT(0x90EE90)
#define  C_PALE_GREEN                 COLOR_CONVERT(0x98FB98)
#define  C_DARK_SEA_GREEN             COLOR_CONVERT(0x8FBC8F)
#define  C_MEDIUM_SPRING_GREEN        COLOR_CONVERT(0x00FA9A)
#define  C_SPRING_GREEN               COLOR_CONVERT(0x00FF7F)
#define  C_SEA_GREEN                  COLOR_CONVERT(0x2E8B57)
#define  C_MEDIUM_AQUA_MARINE         COLOR_CONVERT(0x66CDAA)
#define  C_MEDIUM_SEA_GREEN           COLOR_CONVERT(0x3CB371)
#define  C_LIGHT_SEA_GREEN            COLOR_CONVERT(0x20B2AA)
#define  C_DARK_SLATE_GRAY            COLOR_CONVERT(0x2F4F4F)
#define  C_TEAL                       COLOR_CONVERT(0x008080)
#define  C_DARK_CYAN                  COLOR_CONVERT(0x008B8B)
#define  C_AQUA                       COLOR_CONVERT(0x00FFFF)
#define  C_CYAN                       COLOR_CONVERT(0x00FFFF)
#define  C_LIGHT_CYAN                 COLOR_CONVERT(0xE0FFFF)
#define  C_DARK_TURQUOISE             COLOR_CONVERT(0x00CED1)
#define  C_TURQUOISE                  COLOR_CONVERT(0x40E0D0)
#define  C_MEDIUM_TURQUOISE           COLOR_CONVERT(0x48D1CC)
#define  C_PALE_TURQUOISE             COLOR_CONVERT(0xAFEEEE)
#define  C_AQUA_MARINE                COLOR_CONVERT(0x7FFFD4)
#define  C_POWDER_BLUE                COLOR_CONVERT(0xB0E0E6)
#define  C_CADET_BLUE                 COLOR_CONVERT(0x5F9EA0)
#define  C_STEEL_BLUE                 COLOR_CONVERT(0x4682B4)
#define  C_CORN_FLOWER_BLUE           COLOR_CONVERT(0x6495ED)
#define  C_DEEP_SKY_BLUE              COLOR_CONVERT(0x00BFFF)
#define  C_DODGER_BLUE                COLOR_CONVERT(0x1E90FF)
#define  C_LIGHT_BLUE                 COLOR_CONVERT(0xADD8E6)
#define  C_SKY_BLUE                   COLOR_CONVERT(0x87CEEB)
#define  C_LIGHT_SKY_BLUE             COLOR_CONVERT(0x87CEFA)
#define  C_MIDNIGHT_BLUE              COLOR_CONVERT(0x191970)
#define  C_NAVY                       COLOR_CONVERT(0x000080)
#define  C_DARK_BLUE                  COLOR_CONVERT(0x00008B)
#define  C_MEDIUM_BLUE                COLOR_CONVERT(0x0000CD)
#define  C_BLUE                       COLOR_CONVERT(0x0000FF)
#define  C_ROYAL_BLUE                 COLOR_CONVERT(0x4169E1)
#define  C_BLUE_VIOLET                COLOR_CONVERT(0x8A2BE2)
#define  C_INDIGO                     COLOR_CONVERT(0x4B0082)
#define  C_DARK_SLATE_BLUE            COLOR_CONVERT(0x483D8B)
#define  C_SLATE_BLUE                 COLOR_CONVERT(0x6A5ACD)
#define  C_MEDIUM_SLATE_BLUE          COLOR_CONVERT(0x7B68EE)
#define  C_MEDIUM_PURPLE              COLOR_CONVERT(0x9370DB)
#define  C_DARK_MAGENTA               COLOR_CONVERT(0x8B008B)
#define  C_DARK_VIOLET                COLOR_CONVERT(0x9400D3)
#define  C_DARK_ORCHID                COLOR_CONVERT(0x9932CC)
#define  C_MEDIUM_ORCHID              COLOR_CONVERT(0xBA55D3)
#define  C_PURPLE                     COLOR_CONVERT(0x800080)
#define  C_THISTLE                    COLOR_CONVERT(0xD8BFD8)
#define  C_PLUM                       COLOR_CONVERT(0xDDA0DD)
#define  C_VIOLET                     COLOR_CONVERT(0xEE82EE)
#define  C_MAGENTA                    COLOR_CONVERT(0xFF00FF)
#define  C_ORCHID                     COLOR_CONVERT(0xDA70D6)
#define  C_MEDIUM_VIOLET_RED          COLOR_CONVERT(0xC71585)
#define  C_PALE_VIOLET_RED            COLOR_CONVERT(0xDB7093)
#define  C_DEEP_PINK                  COLOR_CONVERT(0xFF1493)
#define  C_HOT_PINK                   COLOR_CONVERT(0xFF69B4)
#define  C_LIGHT_PINK                 COLOR_CONVERT(0xFFB6C1)
#define  C_PINK                       COLOR_CONVERT(0xFFC0CB)
#define  C_ANTIQUE_WHITE              COLOR_CONVERT(0xFAEBD7)
#define  C_BEIGE                      COLOR_CONVERT(0xF5F5DC)
#define  C_BISQUE                     COLOR_CONVERT(0xFFE4C4)
#define  C_BLANCHED_ALMOND            COLOR_CONVERT(0xFFEBCD)
#define  C_WHEAT                      COLOR_CONVERT(0xF5DEB3)
#define  C_CORN_SILK                  COLOR_CONVERT(0xFFF8DC)
#define  C_LEMON_CHIFFON              COLOR_CONVERT(0xFFFACD)
#define  C_LIGHT_GOLDEN_ROD_YELLOW    COLOR_CONVERT(0xFAFAD2)
#define  C_LIGHT_YELLOW               COLOR_CONVERT(0xFFFFE0)
#define  C_SADDLE_BROWN               COLOR_CONVERT(0x8B4513)
#define  C_SIENNA                     COLOR_CONVERT(0xA0522D)
#define  C_CHOCOLATE                  COLOR_CONVERT(0xD2691E)
#define  C_PERU                       COLOR_CONVERT(0xCD853F)
#define  C_SANDY_BROWN                COLOR_CONVERT(0xF4A460)
#define  C_BURLY_WOOD                 COLOR_CONVERT(0xDEB887)
#define  C_TAN                        COLOR_CONVERT(0xD2B48C)
#define  C_ROSY_BROWN                 COLOR_CONVERT(0xBC8F8F)
#define  C_MOCCASIN                   COLOR_CONVERT(0xFFE4B5)
#define  C_NAVAJO_WHITE               COLOR_CONVERT(0xFFDEAD)
#define  C_PEACH_PUFF                 COLOR_CONVERT(0xFFDAB9)
#define  C_MISTY_ROSE                 COLOR_CONVERT(0xFFE4E1)
#define  C_LAVENDER_BLUSH             COLOR_CONVERT(0xFFF0F5)
#define  C_LINEN                      COLOR_CONVERT(0xFAF0E6)
#define  C_OLD_LACE                   COLOR_CONVERT(0xFDF5E6)
#define  C_PAPAYA_WHIP                COLOR_CONVERT(0xFFEFD5)
#define  C_SEA_SHELL                  COLOR_CONVERT(0xFFF5EE)
#define  C_MINT_CREAM                 COLOR_CONVERT(0xF5FFFA)
#define  C_SLATE_GRAY                 COLOR_CONVERT(0x708090)
#define  C_LIGHT_SLATE_GRAY           COLOR_CONVERT(0x778899)
#define  C_LIGHT_STEEL_BLUE           COLOR_CONVERT(0xB0C4DE)
#define  C_LAVENDER                   COLOR_CONVERT(0xE6E6FA)
#define  C_FLORAL_WHITE               COLOR_CONVERT(0xFFFAF0)
#define  C_ALICE_BLUE                 COLOR_CONVERT(0xF0F8FF)
#define  C_GHOST_WHITE                COLOR_CONVERT(0xF8F8FF)
#define  C_HONEYDEW                   COLOR_CONVERT(0xF0FFF0)
#define  C_IVORY                      COLOR_CONVERT(0xFFFFF0)
#define  C_AZURE                      COLOR_CONVERT(0xF0FFFF)
#define  C_SNOW                       COLOR_CONVERT(0xFFFAFA)
#define  C_BLACK                      COLOR_CONVERT(0x000000)
#define  C_DIM_GRAY                   COLOR_CONVERT(0x696969)
#define  C_GRAY                       COLOR_CONVERT(0x808080)
#define  C_DARK_GRAY                  COLOR_CONVERT(0xA9A9A9)
#define  C_SILVER                     COLOR_CONVERT(0xC0C0C0)
#define  C_LIGHT_GRAY                 COLOR_CONVERT(0xD3D3D3)
#define  C_GAINSBORO                  COLOR_CONVERT(0xDCDCDC)
#define  C_WHITE_SMOKE                COLOR_CONVERT(0xF5F5F5)
#define  C_WHITE                      COLOR_CONVERT(0xFFFFFF)



#define C_DEF_DESKTOP				  C_CADET_BLUE
#define C_DEF_WND_BC				  COLOR_CONVERT(0xF0F0F0)
#define C_DEF_WND_FC				  C_BLACK


/*----------------------------type define--------------------------*/

/*-----------------------------------------------------------------*/


#endif // __UGUI_COLOR_H__

